package cn.smartorigin.soas.frame.panel;

import java.awt.BorderLayout;

import javax.swing.ImageIcon;
import javax.swing.JToolBar;
import javax.swing.table.DefaultTableModel;

import cn.smartorigin.soas.frame.ImageButton;
import cn.smartorigin.soas.frame.JColorTable;

public class AnalysisPage extends Portlet{
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int clientId;
	private ImageIcon icon_nomal3 = new ImageIcon("res/images/analysis_bg.png");
    private ImageIcon icon_selected3 = new ImageIcon("res/images/report_form_bg_selected.png");
	ImageButton btn3 = new ImageButton(icon_nomal3, icon_nomal3, icon_selected3);
	
	public AnalysisPage(int id){
		this.clientId = id;
    	this.setLayout(new BorderLayout());
    	this.add(btn3, BorderLayout.CENTER);
	}
	
	@Override
	public ImageButton getImageButton() {
		return btn3;
	}

	@Override
	public void showMode(boolean isFullscreen) {
		// TODO Auto-generated method stub
		if(isFullscreen){		
			
			this.removeAll();
	        JToolBar toolbar = super.getControlPanel();
		    //this.add(mClistPanel, BorderLayout.CENTER);
		    this.add(toolbar, BorderLayout.NORTH);
		}else{
			this.removeAll();
			this.add(btn3, BorderLayout.CENTER);
		}
	}

}
